package com.hxd.service.impl;

import org.springframework.stereotype.Service;

import com.hxd.base.BaseServiceImpl;
import com.hxd.entity.SysRole;
import com.hxd.mapper.SysRoleMapper;
import com.hxd.service.SysRoleService;


/**
 * <p>
    * 角色信息表 服务实现类
    * </p>
 *
 * @author zhoujw
 * @since 2019-12-25
 * @version v1.0
 */
@Service
public class SysRoleServiceImpl extends BaseServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {

	public void txSave(SysRole entity) {
		tx.exec(() -> {
			boolean res = save(entity);
			// int i = 1 / 0;
			boolean res1 = save(entity);
			// res1 = false;
			return res && res1 ? true : false;
		});
	}
}
